﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
           
<!DOCTYPE html>

<html>
@Html.Partial("LoadPanelPartial")
<head>
  @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    
         <script>
             if (top.boardtop) {
                 if (@ViewData["FClass"].ToString() == "1") {
                     top.boardtop.head_txt.innerText = "请假审核管理";
                 }
                 else {
                     top.boardtop.head_txt.innerText = "外出审核管理";
                 }
             }
    </script>

    @Html.DevExpress().GetStyleSheets(

                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )

    <script type="text/javascript">
        $(function () {
            $("#toolMenu").smartFloat();
        });

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;
            e.customArgs["FClass"] = $("#hdFClass").val();
        }


        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnAdd":
                    {
                        //                        $("#popContent").attr("src", rootPath + "/Admin/WorkTime/EditWorkTime");
                        //                        EditWorkModalMode.Show();
                        window.location.href = rootPath + "/Admin/Leave/LeaveEdit?FClass=" + $("#hdFClass").val();
                        break;
                    }
            }
        }

        //审核
        function LeaveAudit(FLeaveID) {
            window.location.href = rootPath + "/Admin/LeaveAudit/LeaveEdit?FClass=" + $("#hdFClass").val() + "&FLeaveID=" + FLeaveID;
        }
    </script>

</head>
<body>

    @Html.Partial("LeaveListPartial", Model)

    @Html.Hidden("hdFClass", ViewData["FClass"])
</html>
